package com.graduation_design.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.graduation_design.entity.AppOrderItem;
import com.graduation_design.service.AppOrderItemService;
import com.graduation_design.mapper.AppOrderItemMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 从南
* @description 针对表【app_order_item】的数据库操作Service实现
* @createDate 2024-02-16 18:15:58
*/
@Service
public class AppOrderItemServiceImpl extends ServiceImpl<AppOrderItemMapper, AppOrderItem>
    implements AppOrderItemService{

    @Override
    public List<AppOrderItem> listByOrderId(Long orderId) {
        return this.list(new QueryWrapper<AppOrderItem>().eq("order_id", orderId));
    }
}




